package org.itboys.ace.web;

import org.itboys.framework.spring.controller.BaseController;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 跳转到vm的统一方法
 * Created by weisky on 2017/2/5.
 */
@RestController
@RequestMapping("/tovm")
public class AceCommToVMController{

    @RequestMapping("/{fileName}/{vmName}")
    public ModelAndView toVM(@PathVariable("fileName") String fileName, @PathVariable("vmName") String vmName){
        return new ModelAndView(fileName+"/"+vmName);
    }
}
